package com.tt.vtg.plain.info;

import org.hibernate.validator.constraints.NotBlank;

import com.tt.vtg.dao.entity.Role;

public class RoleInfo {

	@NotBlank(message = "Cann't be Empty")
	private String roleName;

	@NotBlank(message = "Cann't be Empty")
	private String roleId;

	public RoleInfo() {

	}

	public RoleInfo(Role role) {
		this.roleName = role.getRoleName();
		this.roleId = role.getRoleId();
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

}
